package com.ruoyi.common.httpSdk.request;

import com.ruoyi.common.httpSdk.AbstractRequest;
import com.ruoyi.common.httpSdk.sms.ValidElvesResponse;
import com.ruoyi.common.httpSdk.sms.ValidJsPluginResponse;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @Author xiaom
 * @Date 2021/4/20 15:50
 * @Version 1.0.0
 * @Description <>
 **/
@Getter
@Setter
public class ValidElvesRequest extends AbstractRequest implements Request<ValidElvesResponse> {

    private String cookie;

    public ValidElvesRequest(RequestMethod method) {
        super(method);
    }

    @Override
    public String getApiUrl() {
        return getBaseUrl() + "/validElves";
    }

    @Override
    public Class<ValidElvesResponse> getResponseClass() {
        return ValidElvesResponse.class;
    }

    @Override
    protected void setUrlParamsMap(Map<String, Object> map) {
        map.put("cookie",cookie);
    }

    @Override
    public Object getUrlParams() {
        setUrlParamsMap(super.urlParamsMap);
        return super.urlParamsMap;
    }
}
